home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Palettes / MiscTableScroll / MiscMouseTracker.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-11  |  1.9 KB  |  56 lines

  1. #ifndef __MiscMouseTracker_h
  2. #define __MiscMouseTracker_h
  3. //=============================================================================
  4. //
  5. //        Copyright (C) 1995 by Paul S. McCarthy and Eric Sunshine.
  6. //                Written by Paul S. McCarthy and Eric Sunshine.
  7. //                            All Rights Reserved.
  8. //
  9. //        This notice may not be removed from this source code.
  10. //
  11. //        This object is included in the MiscKit by permission from the authors
  12. //        and its use is governed by the MiscKit license, found in the file
  13. //        "License.rtf" in the MiscKit distribution.    Please refer to that file
  14. //        for a list of all applicable permissions and restrictions.
  15. //        
  16. //=============================================================================
  17. //-----------------------------------------------------------------------------
  18. // MiscMouseTracker.h
  19. //
  20. //        Abstract class defining selection behavior based upon mouse tracking.
  21. //
  22. //-----------------------------------------------------------------------------
  23. //-----------------------------------------------------------------------------
  24. // $Id: MiscMouseTracker.h,v 1.1 95/09/27 12:21:21 zarnuk Exp $
  25. // $Log:        MiscMouseTracker.h,v $
  26. //    Revision 1.1  95/09/27    12:21:21  zarnuk
  27. //    Initial revision
  28. //    
  29. //-----------------------------------------------------------------------------
  30. extern "Objective-C" {
  31. #import <objc/Object.h>
  32. }
  33. #import <misckit/MiscTableTypes.h>
  34. extern "C" {
  35. #import <dpsclient/dpsNeXT.h>
  36. }
  37.  
  38. class MiscSparseSet;
  39. class MiscTableBorder;
  40.  
  41. @interface MiscMouseTracker : Object
  42.     {
  43.     MiscTableBorder* border;
  44.     MiscSparseSet* set;
  45.     }
  46.  
  47. - initBorder: (MiscTableBorder*) border;
  48. - (void) mouseDown: (NXEvent const*) event atPos: (MiscCoord_V) pos;
  49. - (void) mouseDragged: (NXEvent const*) event atPos: (MiscCoord_V) pos;
  50. - (void) mouseUp: (NXEvent const*) event atPos: (MiscCoord_V) pos;
  51. - (void) keyDown: (NXEvent const*) event atPos: (MiscCoord_V) pos;
  52.  
  53. @end
  54.  
  55. #endif // __MiscMouseTracker_h
  56.